<?xml version="1.0" encoding="UTF-8" ?>
<%@page import="com.lianjing.sh.project.config.base.profile.Project_Profile"%>
<%@page import="com.lianjing.sh.project.authority.web.controller.login.C_Admin_Login_Logout"%>
<%@page import="com.lianjing.sh.project.authority.web.controller.individual.notice.C_Admin_Individual_Notice_PageAccess"%>
<%@page import="org.springframework.core.env.Environment"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!--xxh_layout_head  start-->
<nav class="navbar navbar-default navbar-fixed-top xxh_layout_head" role="navigation">

	<div class="container-fluid">
      <div class="row">
        <div class="col-md-8 logo">
        	<%-- <img src="${RootUrl}/resources/images/logo.png"/> --%>
        	<h3>百锐国际酒庄信息管理系统</h3>
        	<% 
        		WebApplicationContext app = WebApplicationContextUtils.getWebApplicationContext(request.getServletContext()); 
        		Environment env = app.getEnvironment();
        	%>
        	<c:if test="<%=Project_Profile.isTestProduct(env) || Project_Profile.isDevelopment(env) %>">
	        	<div class="col-md-4">
	        		<h3 style="color: red;" >(测试版本)</h3>
	        	</div>
        	</c:if>
        </div>
        <div class="col-md-4">
        	  <ul>
                <!-- <li>
                   <a class="btn btn-primary btn-xs" style="color:#fff;">
                   <i class="glyphicon glyphicon-bell"></i>未读信息（8）</a>
                </li> -->
                <li><a href='<%=C_Admin_Individual_Notice_PageAccess.PageAccess.Operate().getUrl()%>' ><sec:authentication property="name"/></a></li>
                <li><a href="<%=C_Admin_Login_Logout.Logout.Operate().getUrl()%>"><i class="fa fa-sign-out"></i> 安全退出</a></li>
              </ul>
        </div>
      </div>
    </div>
</nav>
<!--xxh_layout_head  end-->
	
<%-- <!-- 导航 -->
<nav class="navbar navbar-default" role="navigation" >
    <div class="container-fluid">
	    <div>
	    	<div class="navbar-header">
		      <a class="aa navbar-brand" href="javascript:void(0)" id="menu-toggle" >
		        <span class="glyphicon glyphicon-align-justify"></span>
		      </a>
		    </div>
    
	        <!--向右对齐-->
	        <ul class="nav navbar-nav navbar-right" >
	            <li class="dropdown" >
	            	<a href="#" class="btn btn-info dropdown-toggle" data-toggle="dropdown" >
	                    <img src="<%=Config_Project_Authority_Properties.getS_Project_Admin_Url()+"/admin/admin/getHeadImg/"%>${loginer.target.id}" alt="" />
	                    ${loginer.target.name}-liyan
	                    <span class="caret"></span>
	                </a>
	                <ul class="dropdown-menu">
	                   	<li><a href="#"><i class="fa fa-user"></i>  个人资料</a></li>
	                    <li><a href="#"><i class="fa fa-cog"></i>  设置</a></li>
	                    <li><a href="<%=Config_Project_Authority_Properties.getS_Project_Admin_Url()+SC_Project_Admin_Login.Logout.Operate().getUrl()%>"><i class="fa fa-sign-out"></i> 退出登录</a></li>
	                </ul>
	            </li>
	        </ul>
	    </div>
    </div>
</nav>
 --%>